<% content_for :title do %>Overzicht attributen<% end %>

<table>
  <tr>
    <th width="65%">Naam</th>
    <th width="15%">Zoekbaar</th>
    <th width="15%">Filterbaar</th>
    <th width="5%" colspan="2">&nbsp;</th>
  </tr>

<% @attributes.each do |attribute| %>
  <tr>
    <td><%=h attribute.name %></td>
    <td align="center"><%=boolean_image attribute.searchable %></td>
    <td align="center"><%=boolean_image attribute.filterable %></td>
    <td><%= link_to 'Aanpassen', edit_admin_attribute_path( attribute ) %></td>
    <td><%= link_to 'Verwijderen', admin_attribute_path(attribute), :confirm => 'Weet u dit zeker?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<p>
  <%=link_to 'Nieuw attribuut', new_admin_attribute_path %>
</p>